import Vue from 'vue';
import VueRouter from 'vue-router';
import home from '@/views/home.vue';

Vue.use(VueRouter);

const routes = [
	{
		path: '/',
		name: 'home',
		component: home,
	},
	{
		path: '/listLoad',
		name: 'listLoad',
		component: () => import('@/views/listLoad.vue'),
	},
	{
		path: '/listLoadCustom',
		name: 'listLoadCustom',
		component: () => import('@/views/listLoadCustom.vue'),
	},
	{
		path: '/lottery',
		name: 'lottery',
		component: () => import('@/views/lottery.vue'),
	},
	{
		path: '/rem',
		name: 'rem',
		component: () => import('@/views/rem.vue'),
	},
	{
		path: '/scratchable',
		name: 'scratchable',
		component: () => import('@/views/scratchable.vue'),
	},
	{
		path: '/video',
		name: 'video',
		component: () => import('@/views/video.vue'),
	},
	{
		path: '/html2Image',
		name: 'html2Image',
		component: () => import('@/views/html2Image'),
	}
];

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes,
});

export default router;
